
from __future__ import unicode_literals
from django.db import models
from optitrans.domain.pays import Pays

class Ville(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=50L)
    id_country = models.ForeignKey(Pays, db_column='id_country',related_name='country')
    latitude = models.FloatField()
    longitude = models.FloatField()
    class Meta:
        db_table = 'ville'

